package iotwisp.base.util;

import org.apache.commons.lang3.RandomUtils;

public class RandomUtil {

	public static String getNumber(int start, int end, int length) {

		String code = String.valueOf(RandomUtils.nextInt(start, end));

		while (code.length() < length) {
			code = "0" + code;
		}
		
		return code;
	}
}
